#pragma once
#include "IPrimitive.h"
#include "Quad.h"
class Cube:public IPrimitive
{
public:
	Cube(Point pos,float w,float l,float h);
	~Cube(void);
	virtual void draw(IPixelDrawer* dr);
	void mulMat(Mat4& mat);
	void setTexture(Texture* texture,Vec3& uvPos=Vec3(0,0,0),float uvW = 1.0,float uvH = 1.0);
	Quad q[6];
};

